package com.foreknow.demo11;

public class ExceptionDemo1 {
    public static void main(String[] args) {
        try {
            int[] arr = {1,2,3};
            for (int i = 0;i<=arr.length;i++){
                System.out.println(arr[i]);
            }
            System.out.println("1111111111111111111111111");
        }catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("我们需要处理异常......");
        }catch (NullPointerException e) {

        }finally {

        }
        System.out.println("程序继续向下执行");
    }
}
